<!--搜索框 begin-->
<div class="search">
    <!--搜索框 begin-->
    <form action="<?php echo site_url('search/index').(!empty($_SERVER['QUERY_STRING'])?"?".$_SERVER['QUERY_STRING']:"")?>" method="get">
        <input class="searchTxt" type="text" name="key" id="key" placeholder="寻找适合你的羊绒衫" /><input class="searchBtn" type="submit" />
    </form>
    <!--搜索框 end-->
    <!--高级搜索 字样 begin-->
    <img class="advancedSearch" src="<?php echo base_url('common/home')?>/img/advancedSearch.jpg" width="69" height="49" alt="" />
    <!--高级搜索 字样 end-->
    <!--搜索条件 begin-->
    <div class="searchLists" <?php echo $is_search==1?"style='display:block;'":"style='display:none;'";?>>
        <div class="searchTerm">
            <span>材质：</span>
            <?php foreach($materiallist as $materialitem):?>
            <?php $search_url=$is_search==1?site_url('search/index').(!empty($_SERVER['QUERY_STRING'])?"?".$_SERVER['QUERY_STRING']."&material=".$materialitem->good_material_id:"?material=".$materialitem->good_material_id):site_url('search/index')."?material=".$materialitem->good_material_id?>
          
           <?php $_search_url= $this->load->controller->return_search_url('material',$materialitem->good_material_id,$search_url)?>
             <a <?php echo $mark['material']==$materialitem->good_material_id?'class="checked"':''?> href="<?php echo $_search_url;?>"><?php echo $materialitem->title?></a>
            <!--<a class="checked" href="">羊毛衫</a>-->
            <?php endforeach;?>
        </div>

        <div class="searchTerm">
            <span>款式：</span>
            <!--<a class="checked" href="">修 身</a>-->
            <?php foreach($goodsstyle as $goodsstyleitem):?>
            <?php $search_url=$is_search==1?site_url('search/index').(!empty($_SERVER['QUERY_STRING'])?"?".$_SERVER['QUERY_STRING']."&style=".$goodsstyleitem->goods_style_id:"?style=".$goodsstyleitem->goods_style_id):site_url('search/index')."?style=".$goodsstyleitem->goods_style_id?>
            <?php $_search_url= $this->load->controller->return_search_url('style',$goodsstyleitem->goods_style_id,$search_url)?>
             <a <?php echo $mark['style']==$goodsstyleitem->goods_style_id?'class="checked"':''?> href="<?php echo $_search_url;?>"><?php echo $goodsstyleitem->title?></a>
            <?php endforeach;?>
            <!--<a href="">蝙 蝠</a>-->
        </div>

        <div class="searchTerm colorTerm">
            <span>颜色：</span>
            <div class="colors">
                <div class="colorLeft">
                    <ul>
                        <?php foreach($colorlist as $coloritem):?>
                        <?php $search_url=$is_search==1?site_url('search/index').(!empty($_SERVER['QUERY_STRING'])?"?".$_SERVER['QUERY_STRING']."&color=".$coloritem->color_id:"?color=".$coloritem->color_id):site_url('search/index')."?color=".$coloritem->color_id?>
                       <?php $_search_url= $this->load->controller->return_search_url('color',$coloritem->color_id,$search_url)?>
                         <li <?php echo $mark['color']==$coloritem->color_id?'class="selected"':''?> style="background:url(<?php echo $coloritem->colorkey;?>);">
                           <a href="<?php echo $_search_url;?>"></a> 
                        </li>
                        <?php endforeach;?>
                    </ul>
                </div>

                <div class="colorMore">展</div>
            </div>
        </div>

        <div class="category">
            <?php if(!empty($_mark) && $_mark==1):?>
            <span>分类&nbsp;&gt;&nbsp;</span>
            <?php foreach($del_condition as $del_conditionitem):?>
            <a href="<?php echo $del_conditionitem['url']?>">材质：<?php echo $del_conditionitem['title']?><img src="<?php echo base_url('common/home')?>/img/hClose.png" width="13" height="13" alt="" />
            <?php endforeach;?>
            </a><a href="<?php echo $del_all_condition?>">全部撤销</a>
           <?php endif;?>
        </div>
    </div>
    <!--搜索条件 end-->
    <!--收起 字样 begin-->
    <img class="stop" src="<?php echo base_url('common/home')?>/img/stop.png" width="69" height="49" alt=""  <?php echo $is_search==1?"style='display:block;'":"style='display:none;'";?>/>
    <!--收起 字样 end-->
</div>
<!--搜索框 end-->

